@charset "UTF-8";

.clearfix:after {
  content: ".";
  display: block;
  height: 0;
  overflow: hidden;
  clear: both;
  visibility: hidden;
}

ul, li, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

html, body {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
}

* {
  box-sizing: border-box;
}

img {
    display: block;
    width: 100%;
    max-width: 100%;
}

.share-icon {
    position: absolute;
    transform: translateX(-500%);
    pointer-events: none;
}

.btn-group {
    position: absolute;
    left: 0;
    width: 100%;
    text-align: center;
}

.btn {
    display: inline-block;
    width: 109px;
}

.btn-group .btn:nth-of-type(2) {
    margin-left: 12px;
}

.text-input {
    position: relative;
    background-image: url(../images/input/right.png), url(../images/input/left.png);
    background-size: 17px 47px;
    background-position: right top, left top;
    background-repeat: no-repeat;

    height: 47px;
    padding: 10px 15px;
}

.text-input:before {
    content: '';
    position: absolute;
    top: 0;
    left: 17px;
    right: 17px;
    bottom: 0;
    background-repeat: repeat-x;
    background-image: url(../images/input/main.png);
    background-size: auto 100%;
    pointer-events: none;
    z-index: 1;
}

.text-input input {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    outline: none;
    z-index: 9;
}

.close {
    width: 35px;
    height: 35px;
    position: absolute;
    top: 13px;
    right: 10px;
    background-image: url(../images/close.png);
    background-size: 100%;
    z-index: 999;
}

.page {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #252892;
    pointer-events: none;
    transition: opacity 0.5s;
    overflow: hidden;
    transform: translatex(-100%);
}

.page.on {
    opacity: 1;
    pointer-events: auto;
    transform: translatex(0);
}

.page-rule {
    background-color: #252d9e;
    z-index: 9999;
}

.rule-btn-group {
    margin-top: -30px;
}

.page-finger {
    background-image: url(../images/finger.jpg);
    background-repeat: no-repeat;
    background-size: 100% auto;
    user-select: none;
    -webkit-touch-callout: none;
}

.create-btn-group {
    position: absolute;
    top: 0;
    padding-top: 129%;
}

.page-enter {
    background-color: #1f3cb4;
}

.logo {
    position: absolute;
    right: 10px;
    top: 7px;
    width: 120px;
    z-index: 9;
}

.page-enter-upload {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.page-enter-bottom {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}

.page-enter-text-container {
    padding-top: 79.69%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.page-enter-text {
    position: relative;
    width: 68.59%;
    margin: auto;
}

.upload-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding-top: 12.656%;
}

.upload-area-tips {
    display: block;
    width: 100%;
    padding-top: 26.5%;
    text-align: center;
    font-size: 14px;
    color: #000;
    pointer-events: none;
}

.upload-image,
.upload-input {
    position: absolute;
    width: 59.69%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 59.69%;
    overflow: hidden;
    z-index: 998;
    border-radius: 50%;
}

.upload-image {
    background-size: cover;
    background-position: center;
}

.upload-input {
    z-index: 999;
    opacity: 0;
}

.upload-input input {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
}

.enter-city {
    font-size: 0.48rem !important;
}

.page-enter-input {
    width: 92%;
    position: absolute;
    left: 4%;
    top: 73.96%;
}

.page-enter-btn-group {
    top: 86.88%;
}

.page-shake {
    background-color: #5758d8;
}

.shake-content {
    position: relative;
    margin: 17.81% 12.5% 0;
}

.shake-hand-group-container {
    width: 100%;
    padding-top: 5.3%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

.page-shake.on .shake-hand:nth-of-type(1) {
    animation: shakehand 1.8s ease 1.2s infinite;
}

.page-shake.on .shake-hand:nth-of-type(2) {
    animation: shakehand 1.8s ease 0s infinite;
}

.page-shake.on .shake-hand:nth-of-type(3) {
    animation: shakehand 1.8s ease .6s infinite;
}

.shake-hand-group {
    position: relative;
    width: 100%;
    padding-top: 100%;
    border-radius: 50%;
}

.shake-hand {
    position: absolute;
    width: 41.38%;
    bottom: -0.4%;
    left: 32%;
    transform-origin: center bottom;
    opacity: 0.5;
}

.shake-hand:nth-of-type(1) {
    transform: rotate(-21deg);
}

.shake-hand:nth-of-type(3) {
    transform: rotate(21deg);
    bottom: 6%;
}

@keyframes shakehand {
    0% {opacity: 1;}
    34% {opacity: 1;}
    35% {opacity: 0.5;}
    100% {opacity: 0.5;}
}

.page-thanks {
    background-color: #454ce9;
}

.page-thanks .thanks-img {
    position: absolute;
    top: 13%;
    left: 50%;
    transform: translateX(-50%);
    width: 76.88%;
}

.page-thanks .btn-group {
    bottom: 7%;
    z-index: 9;
}

.page-win {
    background-color: #4750f1;
}

.win-img {
    padding-top: 12.19%;
    padding-left: 3%;
}

.input-address,
.win-input-group {
    width: 93%;
    margin: auto;
}

.input-address {
    margin-top: -10px;
}

.input-name {
    float: left;
    width: 34%;
    margin-right: -8px;
}
.input-phone {
    float: left;
    width: calc(66% + 16px);
    margin-left: -8px;
}

.win-btn-group {
	position: static;
	margin-top: 10px;
}

.page-success {
	background-color: #4752f0;
}

.success-img {
	padding: 29.53% 13.6% 12.5%;
}

.share-page {
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
}

.share-page .share-tips {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
}

#generate {
    position: relative;
    width: 640px;
    height: 960px;
}

.generate-city {
    position: absolute;
    width: 100%;
    left: 0;
    top: 1%;
    text-align: center;
    font-size: 48px;
    color: #fff;
}

.generate-number {
    background-image: url(../images/number.png);
    background-size: 100%;
    margin-top: 39px;
    width: 100%;
    height: 96px;
    color: #fff;
    font-size: 28px;
    line-height: 96px;
    text-align: center;
}